package service

import (
	"github.com/gin-gonic/gin"
	"hy_808/global"
	"net/http"
)

type ApiRoute struct {
}

func (this ApiRoute) GetDeviceParam808Info(ctx *gin.Context) {
	var busList []global.DeviceDBData
	global.DeviceDBDataMap.Range(func(key, value any) bool {
		d, _ := value.(global.DeviceDBData)
		busList = append(busList, d)
		return true
	})
	ctx.JSON(http.StatusOK, gin.H{"data": busList})
}
